package cn.sdormitory.dormitoryHygiene.vo;

import cn.hutool.core.date.DatePattern;
import cn.sdormitory.common.utils.poi.ExcelTitle;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author : yy
 * @date: 2025/4/11 16:54
 * @description:
 */
@Data
public class ExportDormitoryHygieneVO {
    @ExcelTitle(title = "检查日期")
    @ExcelProperty("检查日期")
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN, timezone = "GMT+8")
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date checkDate;

    @ExcelTitle(title = "检查时段")
    @ExcelProperty("检查时段")
    private String checkTimeSpan;

    @ExcelTitle(title = "评级")
    @ExcelProperty("评级")
    private String grade;

    @ExcelTitle(title = "检查者")
    @ExcelProperty("检查者")
    private String checkUser;

    @ExcelTitle(title = "楼栋")
    @ExcelProperty("楼栋")
    private String buildingNo;

    @ExcelTitle(title = "宿舍号")
    @ExcelProperty("宿舍号")
    private String dormitoryNo;

    @ExcelTitle(title = "宿舍学生")
    @ExcelProperty("宿舍学生")
    private String studentNames;

    @ExcelTitle(title = "班级名称")
    @ExcelProperty("班级名称")
    private String classNames;
}
